<template>
	<view style="padding: 30rpx;">
		<view style="padding: 30rpx;">
			<navigator  url="/pages/APIpages/logpages/logpages">
				<button>打印日志</button>
				</navigator>
			<navigator  >
				<button @click="goNapage()">计时器</button>
				</navigator>
			<navigator  >
				<button @click="goStropage()">数据缓存</button>
				</navigator>
		</view>
			</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goStropage(){
				//接口实现页面跳转，保持当前页面，跳转某页后，可以用navigateBack返回当前页面
				uni.navigateTo({
					url:"/pages/APIpages/storage/storage",
					success() {
						console.log("navigateTo---->success");
					},
					fail(e){
						console.log("navigateTo---->fail:" +JSON.stringify(e));
					},
					// complete(){
					// 	console.log("")
					// }
				})
				
			},
			goNapage(){
				uni.switchTab({
					url:"/pages/tabBar/tabcase/tabcase"
				})
			}
		}
	}
</script>

<style>

</style>
